<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
    <title>{% block title %}{{ application_name }}{% endblock %}</title>
    <link href="/static/css/base.css" rel="stylesheet" type="text/css"/>
    <link href="/static/css/chrome.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" href="/static/css/print.css" type="text/css" media="print" />
    <script type="text/javascript" src="/static/js/jquery.js"></script>
    <script type="text/javascript">
      function twoDP(num){
      if (isNumeric(num,true,true)) {
      dnum = Math.round(num * 100)/100;
      twoDPString = dnum + "";
      if (twoDPString.indexOf(".") == -1) {twoDPString += ".00"};
      if (twoDPString.indexOf(".") == twoDPString.length-2) {twoDPString += "0"};
      return twoDPString;
      } else {
      return "0.00";
      }
      }


      function isNumeric(sText,decimals,negatives) {
      var isNumber=true;
      var numDecimals = 0;
      var validChars = "0123456789";
      if (decimals)  validChars += ".";
      if (negatives) validChars += "-";
      var thisChar;
      for (i = 0; i < sText.length && isNumber == true; i++) {  
		      thisChar = sText.charAt(i); 
		      if (negatives && thisChar == "-" && i > 0) isNumber = false;
	if (decimals && thisChar == "."){
	numDecimals = numDecimals + 1;
	if (i==0 || i == sText.length-1) isNumber = false;
	if (numDecimals > 1) isNumber = false;
	}
	if (validChars.indexOf(thisChar) == -1) isNumber = false;
	}
	return isNumber;
	}
      </script>


    {% block head %}{% endblock %}
  </head>
  <body>
    <div id="header">
      <div class="top">
      </div>
      <div class="bottom">
      </div>
    </div>
    <div id="body">{% block body %}{% endblock %}</div>
    <div id="footer">
    </div>
  </body>
</html>
